home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960209-19960425 / 000211_news@columbia.edu _Fri Mar 15 12:58:48 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.3/8.7.3) with ESMTP id MAA18921 for <kermit.misc@watsun>; Fri, 15 Mar 1996 12:58:47 -0500 (EST)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.3/8.7.3) id MAA21269 for kermit.misc@watsun; Fri, 15 Mar 1996 12:58:44 -0500 (EST)
  4. Path: news.columbia.edu!sol.ctr.columbia.edu!news.mindlink.net!van-bc!unixg.ubc.ca!info.ucla.edu!newsfeed.internetmci.com!howland.reston.ans.net!ix.netcom.com!netnews
  5. From: adldata@ix.netcom.com (David Pollack )
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: LF problem on Ckermit vax/vms and axp/vms talking to sco
  8. Date: 15 Mar 1996 15:45:11 GMT
  9. Organization: Netcom
  10. Lines: 58
  11. Message-ID: <4ic3a7$568@cloner2.ix.netcom.com>
  12. NNTP-Posting-Host: ix-wp2-25.ix.netcom.com
  13. X-NETCOM-Date: Fri Mar 15  7:45:11 AM PST 1996
  14.  
  15. I have ckermit 5a(190) running on digital vms (vax and alpha)
  16. using a script to connect to an sco unix system.
  17.  
  18. >From the vax, it works fine. the script waits for the logon 
  19. prompt,sends the logon id, wait for the password prompt, 
  20. sends the password, does what it needs to. This is repeatable.
  21.  
  22. >From the alpha, it connects, waits for the logon script, sends 
  23. the logon id, waits for the password prompt, never gets/sees 
  24. it and times out. This is repeatable.
  25.  
  26. I do 'set mac echo on' to see what is happening and try again 
  27. from the alpha. It connects properly, works fine. This is also 
  28. repeatable (with set mac echo on).
  29.  
  30. I try the connection under kermit, manually, with no script. 
  31. It works fine again.
  32.  
  33. I realize the logon id and password are followed by \13 but 
  34. unix uses \10 as a terminator. I change the script to append 
  35. \13\10 after the logon id and password and it now seems to 
  36. works fine on both vms machines.
  37.  
  38. I don't understand the following:
  39.  
  40. 1. Why did "set mac echo on" make it work on the alpha.
  41. 2. If the line feed (\10) is needed, why did it work on the 
  42.    vax without it. I did "sho term" on bothe machines but
  43.    did not find anything that would put an lf after a cr.
  44.    The VAX is VMS 5.5. The Alpha is VMS 6.1. Both were done 
  45.    with the same modem.
  46.  
  47. Pertinent script code with fix ("out \10" after the "ocr %u":
  48. The code waits for a logon prompt, sends it, 
  49. waits for a password prompt, sends it, waits for a menu prompt
  50. for further processing and ignores message screens that have
  51. "press <ENTER> to continue..." on them.
  52. --------------------------------------------------
  53. def ocr out \%1\13, echo \%1\13
  54. def mdcdprompt {DESIRED ...}     ; Ending text of a menu display
  55.  
  56. def mdcdlogon -
  57.     set input timeout proceed,-
  58.     input 20 login:,       if fail stop 1 no sign on prompt,-
  59.     ocr \%u, out \10, -
  60.     input 20 Password:,    if fail stop 1 No password prompt,-
  61.     ocr \%p, out \10, -
  62. :retry,-
  63.     input 20 \m(mdcdprompt),  if success goto ok,-
  64. :retry1, -
  65.     reinput 0 <ENTER> to continue..., -
  66.             xif fail {echo did not get expected signon text,-
  67.                       ocr { }, goto retry},-
  68.     ocr { },-
  69.     input 20 \m(mdcdprompt),  if fail goto retry1,-
  70. :ok,-
  71.     echo signon done.
  72. ---------------------------------------------------